<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <ul>
      <li v-for="(item,index) in list">{{item}}----  {{index}}</li>
    </ul>
  </div>
</body>
<script src="./vue.js"></script>
<script>
  const { createApp, ref } = Vue;
  createApp({
    setup() {
      let list = ref([1, 2, 3])

      return {
        list
      }
    }
  }).mount('#app')
</script>

</html>